package com.leyou.client;

import com.leyou.common.PageResult;
import com.leyou.pojo.Brand;
import com.leyou.pojo.BrandVo;
import com.leyou.pojo.Category;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RequestMapping("brand")
public interface BrandClientServer {

    //根据bid获取回显所有的分类
    @RequestMapping("bid/{id}")
    public List<Category> getCategoryById(@PathVariable("id")Integer id);

    //根据商品分类查询品牌
    @RequestMapping("cid/{cid}")
    public List<Brand>getBrandByCid(@PathVariable("cid") Integer cid);

    @RequestMapping("findBrandById/{bid}")
    public Brand findBrandById(@RequestParam("bid") Integer bid);
}
